<!DOCTYPE html>
<html>
<script>
window.someMethod = function(){
  var str = "called someMethod(" + Array.from(arguments).join(",") + ")";
  return str;
}
</script>

</html>